<%@ page isELIgnored="false"%>
<%@ page language="java" contentType="text/html; charset=utf-8"  
    pageEncoding="UTF-8"%>  

<%@ taglib prefix="s" uri="/struts-tags"%>
<html><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>KCMS</title>
<jsp:include page="../../iframecommon.jsp"></jsp:include>
<script type="text/javascript">
function myCheck(){
	var inputs = document.getElementsByName('checkCname');
	  var isChecked = false;
	  for (var i = 0, l = inputs.length; i < l; i++) {
	      if (inputs[i].checked == true) {
	          isChecked = true;
	      }
	  }
	  if (!isChecked) {
		alert('至少选择一个课程');
	  	return false;
	  	}
	  return true;
}
</script>
</head>
<body>
<div class="col-lg-2"></div>
<div class="col-lg-8">
<div class="main-box">
<header class="main-box-header clearfix">
<h1>创建新教学通知</h1>
</header>
<div class="alert alert-success">
<i class="fa fa-check-circle fa-fw fa-lg"></i>
请先选择您需要的所教授的课程
</div>




<div class="alert alert-info">
<i class="fa fa-check-circle fa-fw fa-lg"></i>
请选择信息
<s:form action="message_chooseClass" method="post" onsubmit="return myCheck()">
<hr>
<s:checkboxlist
id="t"
name="checkCname"
list="teachStudents1"
listKey="id.cid"
listValue="id.cname"
labelposition="top">
</s:checkboxlist>
<s:submit value="下一步" align="center" cssClass="btn btn-success"></s:submit>

</s:form>
</div>
</body>
</html>